ExamPlay Light Logo
Logg på

Computer Science for IGCSE & O level - Programming (Section 12 - No. 11)

What is the outcome of the given code using count-controlled loop: ``` For number to 10 to 50 Step 5 Console.WriteLine(number) Next number ```
Prints numbers from 10 to 50 increasing by 5.
Prints a single number only.
The loop will not execute, as the end value is greater than start value.
It will print the value 50 only.

Forklaring

The loop will iterate from 10 to 50, incrementing by 5 each time, printing the current value of the number.

Kommentarer (0)

Logg inn for å kommentere
Annonse
BrainBehindX Inc Logo
©2026; Drevet av BrainBehindX Inc